package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@ApiModel("产品分类")
@Data
public class ProductCategory {
    int id;

    @NotEmpty(message = "类别名称不能为空")
    String name;
    int pid;
    int type;

    @ApiModelProperty(hidden = true)
    List<ProductCategory> children;
}
